<script setup>

import { ref, computed, watch, onMounted } from 'vue'


const props = defineProps({
  data: Object,
})

const propertyList = computed(() => Object.entries(props.data || {}))
</script>

<template>
    <div class="project-baseinfo">
        <div class="panel-title">项目基本情况</div>
        <el-scrollbar style="height: 830px;">
            <!-- <div class="info-line" v-for="[key, value] in propertyList">
                <span>{{ key }}</span>
                <span>{{ value }}</span>
            </div> -->
            <div class="info-line">
                <span>项目名称：</span>
                <span>{{ data.projectName }}</span>
            </div>
            <div class="info-line">
                <span>项目状态：</span>
                <span>{{ data.projectStage }}</span>
            </div>
            <div class="info-line">
                <span>项目规模：</span>
                <span>{{ data.projectScale }}</span>
            </div>
            <div class="info-line">
                <span>竣工日期</span>
                <span>{{ data.beCompletedDate }}</span>
            </div>
            <div class="info-line">
                <span>项目类型：</span>
                <span>{{ data.projectType }}</span>
            </div>
            <div class="info-line">
                <span>项目造价：</span>
                <span>{{ data.projectCostPrice }}</span>
            </div>
            <div class="info-line">
                <span>开工日期：</span>
                <span>{{ data.startWorkDate }}</span>
            </div>
            <div class="info-line">
                <span>项目地址：</span>
                <span>{{ data.address }}</span>
            </div>
            <div class="info-line">
                <span>建设单位：</span>
                <span>{{ data.investmentUnit }}</span>
            </div>
            <div class="info-line">
                <span>勘察单位：</span>
                <span>{{ data.projectReview }}</span>
            </div>
        </el-scrollbar>
    </div>
</template>

<style lang="scss" scoped>
.project-baseinfo {
    padding: 20px;
    box-sizing: border-box;
    .panel-title {
        width: 180px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        color: #049BED;
        border: 1px solid #049BED;
    }
    .info-line {
        display: flex;
        align-items: center;
        line-height: 32px;
        margin-top: 16px;
        margin-bottom: 16px;
        color: #fff;
    }
}
</style>